import request from '@/utils/request'

// 获取当前登录会员信息
export const getCurrentMemberService = () => {
  return request.get('/member/member')
}

// 当前登录会员余额充值
export const rechargeBalanceForMemberService = (amount) => {
  return request.post(`/member/member/recharge/${amount}`)
}

// 当前登录会员升级
export const upgradeCurrentMemberService = (memberLevel) => {
  return request.post(`/member/member/upgrade/${memberLevel}`)
}
